package com.model;

/**
 * Bpm_bis_sub_flowId entity. @author MyEclipse Persistence Tools
 */

public class Bpm_bis_sub_flowId implements java.io.Serializable {

	// Fields

	private String sub_flow_id;
	private Integer flow_seq_id;

	// Constructors

	/** default constructor */
	public Bpm_bis_sub_flowId() {
	}

	/** full constructor */
	public Bpm_bis_sub_flowId(String sub_flow_id, Integer flow_seq_id) {
		this.sub_flow_id = sub_flow_id;
		this.flow_seq_id = flow_seq_id;
	}

	// Property accessors

	public String getSub_flow_id() {
		return this.sub_flow_id;
	}

	public void setSub_flow_id(String sub_flow_id) {
		this.sub_flow_id = sub_flow_id;
	}

	public Integer getFlow_seq_id() {
		return this.flow_seq_id;
	}

	public void setFlow_seq_id(Integer flow_seq_id) {
		this.flow_seq_id = flow_seq_id;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bpm_bis_sub_flowId))
			return false;
		Bpm_bis_sub_flowId castOther = (Bpm_bis_sub_flowId) other;

		return ((this.getSub_flow_id() == castOther.getSub_flow_id()) || (this
				.getSub_flow_id() != null && castOther.getSub_flow_id() != null && this
				.getSub_flow_id().equals(castOther.getSub_flow_id())))
				&& ((this.getFlow_seq_id() == castOther.getFlow_seq_id()) || (this
						.getFlow_seq_id() != null
						&& castOther.getFlow_seq_id() != null && this
						.getFlow_seq_id().equals(castOther.getFlow_seq_id())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getSub_flow_id() == null ? 0 : this.getSub_flow_id()
						.hashCode());
		result = 37
				* result
				+ (getFlow_seq_id() == null ? 0 : this.getFlow_seq_id()
						.hashCode());
		return result;
	}

}